import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  server:{
    proxy:{
      "/VueHandler":{
        target:"http://127.0.0.1:3000",
        changeOrigin:true,
        ws:true,
        rewrite: (path) => path.replace(/^\/VueHandler/, '') //路径中多余的VueHandler 重写为""
      }
    }
  }
})
